<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>getRecommendedResourceTest</title>
<link href="style/main.css" rel="stylesheet" type="text/css" />
<style>body,td,a,p,.h{font-family:arial,sans-serif;font-size:13px}</style>
<script type="text/javascript">

function validate_required(field, alerttxt)
{
	with (field)
	{
		if (value==null || value=="")
		{
			alert(alerttxt);
			return false;
		}
		else 
		{
			return true;
		}
	}
}

function validate_form(thisform)
{
	with (thisform)
	{
		if (validate_required(recommendedListLength, "Length must be filled!") == false)
		{
			recommendedListLength.focus();
			return false;
		}
		var reg = /[0-9]*/;
		if (!reg.exec(recommendedListLength))
		{
			alert("Length is not available!");
			return false;
		}
	}
}

</script>

</head>
<body>

<form name="testForm" action="http://192.168.18.12:4180/ilib/getRecommendedResource.do" method="post" target="_blank" onsubmit="return validate_form(this)">
<table id=directions_form width=100% >

<tr>
	<td style=text-align:left width=40>Please Input Recommended List Length</td>
	<td width=60%>
	 <input type="text" name="recommendedListLength" size="20" />
	</td>
</tr>

<tr>
  <td width="100%" colspan="2" align="center">
    <input type="submit" value="submit"/>
  	<name="Submit" onClick="javascript:history.go(-1)">      
  </td>
</tr>

</table>
</form>

</body>
</html>